import request from '@/utils/request'

// 查询活动发布列表
export function listEventRele(query) {
  return request({
    url: '/xyh/eventRele/list',
    method: 'get',
    params: query
  })
}

// 查询活动发布详细
export function getEventRele(id) {
  return request({
    url: '/xyh/eventRele/' + id,
    method: 'get'
  })
}

// 新增活动发布
export function addEventRele(data) {
  return request({
    url: '/xyh/eventRele',
    method: 'post',
    data: data
  })
}

// 修改活动发布
export function updateEventRele(data) {
  return request({
    url: '/xyh/eventRele',
    method: 'put',
    data: data
  })
}

// 删除活动发布
export function delEventRele(id) {
  return request({
    url: '/xyh/eventRele/' + id,
    method: 'delete'
  })
}
